<?php
   if (!isset($_SESSION["nomeAdmin"],$_SESSION["perfilAdmin"])) { header("Location:index.php?act=close"); }

$sql = "select * from tab_info ".
         "where co_info=1";
$qry = mysql_query($sql);
$row = mysql_fetch_array($qry);

?>

<table width="430" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td width="429" bgcolor="#006633"><div align="left"><font color="#e7e7e7"  face="Verdana" size="2"><b>&nbsp;</b></font><font color="#e7e7e7"  face="Verdana" size="1"><b>Informa&ccedil;&otilde;es</b></font></div></td>
  </tr>
   <tr>
     <td rowspan="4" align="center" valign="top">
	 <table width="96%" cellpadding="0" cellspacing="0">
	 <form id="form_info" name="form_info" method="post" action="atualiza_informacoes.php">
         <tr>
           <td height="31" valign="bottom" class="style22">&nbsp;</td>
         </tr>
         <tr>
           <td height="9" valign="top" class="style22"><table width="100%" class="txtDescCampoInscricao">
             <tr>
               <td width="36%" height="121" valign="top">Informa&ccedil;&atilde;o Inicial:</td>
               <td width="64%" valign="top"><label>
                 <textarea name="txtinfo" cols="35" rows="9" class="textarea"><?php echo $row['info_inicial']; ?></textarea>
               </label></td>
             </tr>
             <tr>
			 <td height="31" valign="top">Inscri&ccedil;&otilde;es:</td>
               <td valign="top"><input name="txtinscricao" type="text" id="txtinscricao" size="40" value="<?php echo $row['inscricao']; ?>" /></td>
			   </tr>
			 <tr>
               <td height="31" valign="top">Valida&ccedil;&atilde;o das Inscri&ccedil;&otilde;es:</td>
               <td valign="top"><input name="txtvalidacao" type="text" id="txtvalidacao" size="40" value="<?php echo $row['validacao']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Local:</td>
               <td valign="top"><input name="txtlocal" type="text" id="txtlocal" size="40" value="<?php echo $row['local']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Hor&aacute;rio:</td>
               <td valign="top"><input name="txthorario" type="text" id="txthorario" size="40" value="<?php echo $row['horario']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Prova Escrita: </td>
               <td valign="top"><input name="txtprova_escrita" type="text" id="txtprova_escrita" size="40" value="<?php echo $row['prova_escrita']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Resultado Parcial: </td>
               <td height="21" valign="top"><input name="txtres_parcial" type="text" id="txtres_parcial" size="40" value="<?php echo $row['res_parcial']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Entrevista:</td>
               <td height="21" valign="top"><input name="txtentrevista" type="text" id="txtentrevista" size="40" value="<?php echo $row['entrevista']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Resultado Final: </td>
               <td height="21" valign="top"><input name="txtres_final" type="text" id="txtres_final" size="40" value="<?php echo $row['res_final']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Entrega de Documenta&ccedil;&atilde;o: </td>
               <td height="21" valign="top"><input name="txtentrega" type="text" id="txtentrega" size="40" value="<?php echo $row['entrega']; ?>" /></td>
             </tr>
             <tr>
               <td height="31" valign="top">Per&iacute;odo:</td>
               <td height="21" valign="top"><input name="txtperiodo" type="text" id="txtperiodo" size="40"  value="<?php echo $row['periodo']; ?>"/></td>
             </tr>
             <tr>
               <td height="31" valign="top">Observa&ccedil;&otilde;es:</td>
               <td height="21" valign="top"><input name="txtobs" type="text" id="txtobs" size="40"  value="<?php echo $row['obs']; ?>"/></td>
             </tr>
             <tr>
               <td height="121" valign="top">Informa&ccedil;&atilde;o Final:</td>
               <td valign="top"><label>
                 <textarea name="txtinfofinal" cols="35" rows="9" class="textarea" id="txtinfofinal"><?php echo $row['info_final'];?>
             </textarea>
               </label></td>
             </tr>
             <tr>
               <td height="38" colspan="2" valign="bottom"><input type="button" name="Button" value="Atualizar" onclick="JavaScript: if (document.getElementById('txtinfo').value =='' || document.getElementById('txtinscricao').value =='' || document.getElementById('txtlocal').value =='' || document.getElementById('txthorario').value =='' || document.getElementById('txtprova_escrita').value =='' || document.getElementById('txtres_parcial').value =='' || document.getElementById('txtres_final').value =='' || document.getElementById('txtentrevista').value =='' || document.getElementById('txtentrega').value =='' || document.getElementById('txtperiodo').value =='' || document.getElementById('txtobs').value =='')
																						{ alert('Favor preencher todos os campos!'); } else { document.form_info.submit(); }"/></td>
             </tr>
           </table>
           </span></td>
         </tr>
        </form>
     </table></td>
   </tr>
   <tr> </tr>
   <tr> </tr>
   <tr> </tr>
  <tr>
    <td align="center">&nbsp;</td>
  </tr>
</table>
